import {http} from '../utils'

exports.getQualityList = function (uid, sid) {
  return http({
    type:'get',
    url:`/Quality/List?universityId=${uid}&schoolId=${sid}`,
  })
}

exports.getFensheng = function (type) {
  return http({
    type:'get',
    url:`/Quality/List?mode=${type}`,
  })
}

exports.getQualityDetail = function (qid) {
  return http({
    type:'get',
    url:`/Quality/Detail?id=${qid}`,
  })
}
exports.addQuality = function (data) {
  return http({
    type:'post',
    url:`/Quality`,
    data: JSON.stringify(data),
    contentType: 'application/json;charset=UTF-8'
  })
}

exports.reviseQuality = function (qid, data) {
  return http({
    type:'put',
    url:`/Quality?id=${qid}`,
    data: JSON.stringify(data),
    contentType: 'application/json;charset=UTF-8'
  })
}
exports.deleteQuality = function (qid) {
  return http({
    type:'delete',
    url:`/Quality?id=${qid}`
  })
}
